package com.lyl.syt.client;

import com.lyl.syt.vo.order.OrderCountQueryVo;
import io.swagger.annotations.ApiOperation;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

import java.util.Map;

/**
 * @author Mr.Luo
 * @date 2022-05-27 15:07
 * @desc 订单feign调用
 */
@FeignClient(value = "order-service", path = "/api/order/orderInfo")
public interface OrderFeignClient {

    @ApiOperation(value = "获取订单统计数据")
    @PostMapping("inner/getCountMap")
    public Map<String, Object> getCountMap(@RequestBody OrderCountQueryVo orderCountQueryVo);
}
